package oliver;

public class Box {

    /**
     * 序号
     */
    private int id;

    /**
     * 箱数
     */
    private int carton;

    /**
     * 类型
     */
    private String spec;

    /**
     * 是否混箱
     */
    private boolean mixed;

    public Box(int id, int carton, String spec, boolean mixed) {
        this.id = id;
        this.carton = carton;
        this.spec = spec;
        this.mixed = mixed;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCarton() {
        return carton;
    }

    public void setCarton(int carton) {
        this.carton = carton;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public boolean isMixed() {
        return mixed;
    }

    public void setMixed(boolean mixed) {
        this.mixed = mixed;
    }

    @Override
    public String toString() {
        return "Box{" +
                "id=" + id +
                ", carton=" + carton +
                ", spec='" + spec + '\'' +
                ", mixed=" + mixed +
                '}';
    }
}
